<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<body>
<div class="row">
    <div class="col-md-12">
        <form class="form-horizontal" action="${ctx}/role/insert" method="post" id="editForm">
            <input type="hidden" name="id" id="id" value="${role.id}"/>
            <input type="hidden" name="isSystem" id="isSystem" value="${role.isSystem}"/>
            <input type="hidden" name="operateType" id="operateType" value="${operateType}"/>
            <input type="hidden" name="checks"/>
            <div class="form-group">
                <label class="col-md-2 control-label">角色名</label>

                <div class="col-md-8">
                    <input id="name" name="name" value="${role.name}" placeholder="请输入角色名"
                           class="form-control input-large"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-2 control-label">描述</label>

                <div class="col-md-8">
                    <textarea class="form-control" name="description" id="description"
                              class="form-control">${role.description}</textarea>
                </div>
            </div>

        </form>
    </div>
</div>
<div class="page-header edit-page-header"></div>
<div class="row">
    <div class="col-xs-2"></div>
    <div class="col-xs-10">
        <ul id="treeView" class="ztree"></ul>
    </div>
</div>
<c:import url="../common/ztree.jsp"/>
<script type="text/javascript" src="${ctx}/resources/js/module/role/edit.js"></script>
<div id="editAlert" class="hide" style="min-width:550px"></div>
</body>
</html>
